Skip to content

[FEATURE] TracingGanttChart: add search functionality#661

Merged
andreasgerstmayr merged 3 commits into
perses:mainfrom
andreasgerstmayr:ganttchart-search
May 26, 2026
Merged

[FEATURE] TracingGanttChart: add search functionality#661
andreasgerstmayr merged 3 commits into
perses:mainfrom
andreasgerstmayr:ganttchart-search

Conversation

@andreasgerstmayr
Copy link
Copy Markdown
Contributor

Description

Add search functionality to the TracingGanttChart. It searches in the following fields:

  • service name
  • span name
  • Span ID
  • span and resource attributes (keys and values)

Screenshots

ganttchart_search.mp4

Checklist

  • Pull request has a descriptive title and context useful to a reviewer.
  • Pull request title follows the [<catalog_entry>] <commit message> naming convention using one of the
    following catalog_entry values: FEATURE, ENHANCEMENT, BUGFIX, BREAKINGCHANGE, DOC,IGNORE.
  • All commits have DCO signoffs.

UI Changes

  • Changes that impact the UI include screenshots and/or screencasts of the relevant changes.
  • Code follows the UI guidelines.

Signed-off-by: Andreas Gerstmayr <agerstmayr@redhat.com>
@andreasgerstmayr andreasgerstmayr requested a review from a team as a code owner May 21, 2026 16:34
@andreasgerstmayr andreasgerstmayr requested review from jgbernalp and removed request for a team May 21, 2026 16:34
Signed-off-by: Andreas Gerstmayr <agerstmayr@redhat.com>
}

function handleKeyDown(e: React.KeyboardEvent): void {
if (e.key === 'Enter') {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this be guarded with hasMatches?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch!
The buttons are disabled in this case, but the keypress event still fires and would produce a NaN. I added the guard.

Signed-off-by: Andreas Gerstmayr <agerstmayr@redhat.com>
@andreasgerstmayr andreasgerstmayr added this pull request to the merge queue May 26, 2026
Merged via the queue into perses:main with commit fef4221 May 26, 2026
16 checks passed
@andreasgerstmayr andreasgerstmayr deleted the ganttchart-search branch May 26, 2026 10:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants